home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
mmpp010.zip
/
GENERAL.HP_
/
GENERAL.bin
Wrap
Text File
|
1995-03-13
|
2KB
|
73 lines
// CopyRight Maurizio Maccani 1995
#ifndef _GENERAL
#define _GENERAL
#include <windows.h>
#include <windowsx.h>
#include <stdlib.h>
#include <string.h>
#include "resource.h"
#include "MODEM.h"
#include "db.hpp"
#include "telephon.h"
#define INPUTFILE "teldata.dat"
struct TelepItemStruct {
int defaultAreaCode;
int defaultIntCode;
HWND internLB,areaLB,edit,button;
BOOL areaFromInt;
int vDim;
int hDim;
HFONT newFont;
};
struct EditProc {
BOOL validate;
int key;
BOOL open;
BOOL closed;
BOOL plus;
};
struct Personal {
char areaC[20];
char intC[20];
char countryC[20];
int iAm;
BOOL areaHasPrefix;
char areaPrefix[20];
};
void Strip(LPSTR);
BOOL GetInternational(LPSTR,LPSTR);
BOOL GetArea(LPSTR,LPSTR);
void GetNumber(LPSTR,LPSTR,BOOL);
BOOL GetExtension(LPSTR,LPSTR);
BOOL IsNumeric(char);
BOOL IsOtherCity(LPSTR);
BOOL IsInternational(LPSTR);
extern "C" BOOL FAR PASCAL _export Dial(HWND hwnd, LPSTR telToCall);
void ValidateTelN(HWND hwnd,int wParam);
LONG __export CALLBACK TelephoneProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LONG __export CALLBACK TelMessageProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LONG __export CALLBACK TelephoneEditProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LONG __export CALLBACK TelephoneListBoxProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL __export CALLBACK Area(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
BOOL __export CALLBACK Country(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
extern "C" BOOL FAR PASCAL _export TelephoneParametersDialogProc(HWND hDlg, UINT message, UINT wParam,
LONG lParam);
extern "C" BOOL FAR PASCAL __export SettingsDlgProc(HWND hDlg, UINT uMsg,
WPARAM wParam, LPARAM lParam);
void CreatePersonal();
BOOL LoadMainList();
LRESULT CreateTTYInfo();
#define TEN_SHOWMAIN 7735
#define TEN_SHOWCHILD 7736
void DrawUpRect(HDC hdc,RECT rect,int up);
void ShrinkRect(RECT *rect,int amount);
#define DRAW_OUT 1
#define DRAW_IN 0
#define DRAW_UNDERLINE 2
#endif